<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <%@include file="../../../includes/common.jsp" %>
    <title>编辑用户注册课件</title>
</head>
<body>
<div>
    <form id="filegetup" method="post" enctype="multipart/form-data" class="form-horizontal">
        <fieldset>
            <legend></legend>
            <div class="control-group">
                <label class="control-label" for="courseName">课件名称</label>

                <div class="controls">
                    <input type="text" name="courseName" id="courseName"/>
                </div>
            </div>

            <div class="control-group">
                <label class="control-label" for="courseType">课件类型</label>

                <div class="controls">
                    <input type="text" id="courseType" readonly value="" onclick="showCandidate();"/>
                    &nbsp;<a id="menuBtn" onclick="showCandidate(); return false;"><spring:message code="select"/></a>
                    <input type="hidden" id="typeId" name="totalNum" value="0">
                </div>
            </div>

            <div class="control-group">
                <label class="control-label" for="state">课件状态</label>

                <div class="controls">
                    <input type="file" name="state" id="state"/>
                </div>
            </div>


            <div class="control-group">
                <label class="control-label"></label>

                <div class="controls">
                    <input type="button" id="button" onclick="editCourseRegisterInfo()" class="btn btn-primary"
                           value="确定"/>
                    <input type="button" onclick="quit()" class="btn btn-primary"
                           value="取消"/>
                </div>
            </div>
        </fieldset>
    </form>
</div>
<div id="typeContent" class="divauto" style=" display:none; position: absolute;">
    <ul id="menuTree" class="ztree"></ul>
</div>
</body>
</html>
<script type="text/javascript">
    function editCourseRegisterInfo() {
        $.ajax({
            url: basePath + "courseRegister/editCourseRegister",
            data:{

            },
            dataType: "json",
            type: "POST",
            success: function () {
                $.messager.alert("成功", "编辑成功！", "", function () {
                    parent.query();
                })
            },
            error: doError
        })
    }

    function quit() {
        parent.$("#dataEdit").dialog('close');
    }
</script>
